package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.Address;
import com.ysd.mapper.AddressMapper;
import com.ysd.service.AddressService;
@Service
public class AddressServiceImpl implements AddressService {

	@Autowired
	private AddressMapper addressMapper;
	
	@Override
	public List<Address> findAddress(int uid) {
		return addressMapper.getAddress(uid);
	}

	@Override
	public int deleteAddress(Address address) {
		return addressMapper.deleteAddress(address);
	}

	@Override
	public int addAddress(Address address) {
		return addressMapper.addAddress(address);
	}

	@Override
	public int updateAddress(Address address) {
		return addressMapper.updateAddress(address);
	}

	@Override
	public List<Address> getRess(int id) {
		return addressMapper.getRess(id);
	}

	

}
